home *** CD-ROM | disk | FTP | other *** search
- ~{The TESTDATA file should be on the screen when printing this form.}~
- ~{Lines beginning and ending with tildes and curley brackets are comments.}~
- ~{Make sure that you don't edit this file with any word processor incapable}~
- ~{of both line overwriting and ASCII output. FORMED is ASCII-capable.}~
- ~{Also, be sure that the TESTDATA file is displayed when you print this file}~
- ~{with PopForm.}~
- ~{}~
- ~{}~
- ~GOSUB WELCOME~
- If the "amount" shown in the TESTDATA file is greater than 40, I'll skip to
- the point in this form identified as LABEL 40. ~IF 40<("amount: ")~~goto 40~~\~
- If it's not, I'll just keep
- talking. Notice that this file uses line-overwriting to maintain spacing.
- Whenever PopForm encounters the ~\~ code at the end of a line, it knows that it
- should print the NEXT line OVER the line just printed. Line overwriting allows
- the sentance beginning with, "If it's not..", to be printed directly after the
- sentance that ends with "...as LABEL 40". Those two sentances may appear on
- different screen lines, but line overwriting tells your printer to print the
- second line OVER the first, not on the next line down.
- ~GOTO ENTER-SOMETHING~
- ~LABEL 40~
- Now, let's see if TESTDATA's
- "amount" is less than 20. ~IF 20>("amount: ")~~goto end~~\~
- Nope. If it were, I would have skipped to the end
- of the file (LABEL END).
- ~LABEL ENTER-SOMETHING~
-
- ~{Notice that the next line contains the ~+~ code, telling PopForm to join}~
- ~{two lines, printing one right after the other on the SAME printed line.}~
- Now, I'll ask you to type in something:~+~
- ~[9]INPUT "Give me 9 letters to print"~~\~
- Thanks. Now, let's
- exit this form and print LABEL.FRM. Here we go...
-
- ~FILE LABEL.FRM~
- ~LABEL WELCOME~
- I'm now printing the WELCOME subroutine found at the bottom of the form.
- Notice that the RETURN statement at the end of the subroutine will cause Pop-
- Form to resume printing at the point from which it branched to the subroutine.
-
- ~RETURN~
- ~LABEL END~